
const TokenKey = 'vue-admin-zjy_token'

// 获取token
export function getToken () {
  return localStorage.getItem(TokenKey)
}

// 设置token
export function setToken (token) {
  return localStorage.setItem(TokenKey, token)
}

// 清除token
export function removeToken () {
  return localStorage.removeItem(TokenKey)
}

// 判断是否登录
export const isLogin = () => !!localStorage.getItem(TokenKey)
